/*
 * Created on Aug 24, 2010 by Eng. Julian Rousselot
 *  
 *  This program is free software: you can redistribute it and/or modify
 *  it under the terms of the GNU General Public License as published by
 *  the Free Software Foundation, either version 3 of the License, or
 *  (at your option) any later version.
 *
 *  This program is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *  GNU General Public License for more details.
 *
 *  You should have received a copy of the GNU General Public License
 *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
 *
 */

package ar.com.visualAORE.controller;

import ar.com.visualAORE.framework.controller.Controller;
import ar.com.visualAORE.framework.model.Model;
import ar.com.visualAORE.model.Document;
import ar.com.visualAORE.model.ModelVisualAORE;
import ar.com.visualAORE.model.Selection;

/**
 * @author julian
 *
 */
public class VersionControlFrameController extends Controller{
	public VersionControlFrameController(Model model){
		super.setModel(model);
	}
	public void addDocument(Document document){
		((ModelVisualAORE) getModel()).addDocument(document);
	}
	public void addSelection(Selection selection, String key){
		((ModelVisualAORE) getModel()).addSelection(selection, key);
	}
	public String diff(String aldFilePath, String newFilePath){
		return ((ModelVisualAORE) getModel()).diff(aldFilePath, newFilePath);
	}
/*	public void save(BufferedWriter bw){
		((ModelVisualAORE) getModel()).saveSelections(bw);
	}
*/}
